<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>跳转提示</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
.content {
	width:100%;
	height:100%;
}
.myuphp {
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    border: 10px solid #e0e0e0;
    background-color: #2196F3;
    color: #ffffff;
    width: 500px;
}
a {
    text-decoration: none;
    color: #FFEB3B;
}
@media screen and (max-width: 600px) { 
	.myuphp {
	    width: 80%;
	}	
}
</style>
</head>
<body>
	<div class="content">
	    <div class="myuphp">
		    <div align="center">
			    <img src="/myuphp/Tpl/img/success.png" height="100">
			    <p>{$name}</p>
			    <p><span id="countdown"></span>秒后，将自动 <a href="{:dingyi($url,'/')}">跳转</a></p>
		    </div>
	    </div>
	</div>
</body>
<script src="/myuphp/Tpl/js/jquery.min.js"></script>
<script>
$(function() {
    var autoJump = {
        t: 3,
        timer: null,
        el: '#countdown',
        href: '{:dingyi($url,'/')}',
        jump: function() {
            window.location.href = this.href;
        },
        render: function() {
            $(this.el).html(this.t);
        },
        init: function() {
            this.render();
            var _this = this;
            _this.timer = setInterval(function() {
                if (_this.t < 1) {
                    _this.jump();
                    clearInterval(_this.timer);
                } else {
                    _this.t--;
                    _this.render();
                }
            }, 1000)
        }
    };
    autoJump.init();
})
</script>
</html>